package com.dingwen.treasure.base.annotation;


import com.dingwen.treasure.base.enums.DesensitizationFunction;

import java.lang.annotation.*;

/**
 * 脱敏注解
 *
 * @author dingwen
 * @date 2022/07/20
 */
@Target({ElementType.FIELD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Desensitization {
    /**
     * 函数
     *
     * @return {@link DesensitizationFunction}
     */
    DesensitizationFunction func() default DesensitizationFunction.ALL_MASK;
}
